#include <stdio.h>

int main(void)
{
    int array[10], index, by;

    printf("Enter 10 numbers: \n");
    for (int i = 0; i < 10; i++)
        scanf("%d", &array[i]);

    for (int i = 0; i < 10; i++)
    {
        index = array[i];
        for (int j = i + 1; j < 10; j++)
        {
            if (index > array[j])
            {
                by = index;
                index = array[j];
                array[j] = by;
            }
        }
        array[i] = index;
    }

    for (int i = 0; i < 10; i++)
        printf("%d ", array[i]);

    return 0;
}